package com.example.iot.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.iot.entity.id.RuleChainId;
import com.example.iot.entity.id.RuleNodeId;
import com.example.iot.entity.po.RuleNodePO;

import java.util.List;
import java.util.Optional;

/**
 * @author ChenXiangpeng
 */
public interface RuleNodeDao extends IService<RuleNodePO> {
    void deleteRuleNode(RuleNodeId ruleNodeId);

    Optional<RuleNodePO> findRuleNodeById(RuleNodeId ruleNodeId);

    List<RuleNodePO> getRuleChainNodes(RuleChainId ruleChainId);

    void deleteByChainId(RuleChainId ruleChainId);
}
